<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/12/19 0019
 * Time: 21:19
 */

namespace app\admin\model;


use think\Model;

class Ksb extends Model
{

    public function kcb()
    {
        return $this->belongsTo('Kcb', 'ofkc');
    }

    public function getList()
    {
        return $this->with('kcb')->paginate(5000);
    }
  public function getks($no){
      return $this->where(['no'=>$no])->find();
  }
    public function getcx($ksname){
        return $this->where(['ksname'=>$ksname])->find();
    }

}